8.2. Example — successful addItem

>>Request

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Header/>
  <SOAP-ENV:Body>
    <ns2:addItem xmlns:ns2="http://docs.oasis-open.org/ws-calendar/ns/soap"
                 xmlns:ns3="urn:ietf:params:xml:ns:icalendar-2.0">
      <ns2:href>/user/douglm/calendar</ns2:href>
      <ns3:icalendar>
        <ns3:vcalendar>
          <ns3:components>
            <ns3:vevent>
              <ns3:properties>
                <ns3:uid>
                  <ns3:text>1302064354993</ns3:text>
                </ns3:uid>
                <ns3:summary>
                  <ns3:text>try this</ns3:text>
                </ns3:summary>
                <ns3:dtstart>
                  <ns3:date-time>20110406T150000Z</ns3:date-time>
                </ns3:dtstart>
                <ns3:dtend>
                  <ns3:date-time>20110406T160000Z</ns3:date-time>
                </ns3:dtend>
              </ns3:properties>
            </ns3:vevent>
          </ns3:components>
        </ns3:vcalendar>
      </ns3:icalendar>
    </ns2:addItem>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

>>Response

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Header/>
  <SOAP-ENV:Body>
    <ns2:addItemResponse xmlns:ns2="http://docs.oasis-open.org/ws-calendar/ns/soap"
                         xmlns:ns3="urn:ietf:params:xml:ns:icalendar-2.0">
      <ns2:status>OK</ns2:status>
      <ns2:href>/user/douglm/calendar/1302064354993.ics</ns2:href>
      <ns2:changeToken>"20110406T155741Z-0"</ns2:changeToken>
    </ns2:addItemResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>